# -*- bazel -*-

load("@drake//tools/skylark:cc.bzl", "cc_library")
load(":vars.bzl", "LIBDIR")

licenses(["notice"])  # IJG

cc_library(
    name = "libjpeg",
    hdrs = glob(["include/*.h"]),
    includes = ["include"],
    linkopts = [
        "-L" + LIBDIR,
        "-Wl,-rpath," + LIBDIR,
        "-ljpeg",
    ],
    visibility = ["//visibility:public"],
    deprecation = "The @libjpeg external is deprecated in Drake's WORKSPACE and will be removed on or after 2024-02-01.",  # noqa
)
